ISCModelObject

The ISCModelObject interface represents an object in a model.

The following table contains the methods for the ISCModelObject interface:

Method

Description

SC_ModelObjectFlags Flags()

Returns the flags of the object.

SC_CLSID ClassId()

Returns the class identifier of the current object.

BSTR ClassName()

Returns the class name of the current object.

ISCModelPropertyCollection * CollectProperties(VARIANT ClassIds [optional], VARIANT MustBeOn [optional], VARIANT MustBeOff [optional])

Returns a property collection of the type that you want. This method always returns a valid collection even if the collection is empty.

ISCModelObject * Context()

Passes back the context (parent) of the object in the model's object tree. Passes back NULL if the current object is the tree root.

VARIANT_BOOL IsInstanceOf(VARIANT ClassId)

Returns TRUE if self is an instance of the passed class. This method respects inheritance. If ClassId contains an ancestor class, the method returns TRUE.

VARIANT_BOOL IsValid()

Returns TRUE if self is valid. This method is used to detect if the referenced object is deleted.

BSTR Name()

Returns the name or a string identifier of the current object.

SC_OBJID ObjectId()

Uniquely identifies the current object.

ISCModelPropertyCollection * Properties()

Returns a property collection of all available properties.

More information about SC_ModelObjectFlags is located in the Enumerations section.